# -*- coding: utf-8 -*-
# Copyright 2023 OpenSPG Authors
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
# or implied.

# ATTENTION!
# This file is generated by Schema automatically, it will be refreshed after schema has been committed
# PLEASE DO NOT MODIFY THIS FILE!!!
#

from knext.schema.model.schema_helper import (
    SPGTypeHelper,
    PropertyHelper,
    RelationHelper,
)


class RiskMining:
    class App(SPGTypeHelper):

        id = PropertyHelper("id")
        description = PropertyHelper("description")
        belongTo = PropertyHelper("belongTo")
        useCert = PropertyHelper("useCert")
        name = PropertyHelper("name")
        riskMark = PropertyHelper("riskMark")

    class Cert(SPGTypeHelper):

        name = PropertyHelper("name")
        id = PropertyHelper("id")
        description = PropertyHelper("description")
        certNum = PropertyHelper("certNum")

    class Company(SPGTypeHelper):

        name = PropertyHelper("name")
        id = PropertyHelper("id")
        description = PropertyHelper("description")
        hasPhone = PropertyHelper("hasPhone")

        holdShare = RelationHelper("holdShare")
        hasCert = RelationHelper("hasCert")

    class Device(SPGTypeHelper):

        install = PropertyHelper("install")
        id = PropertyHelper("id")
        umid = PropertyHelper("umid")
        description = PropertyHelper("description")
        name = PropertyHelper("name")

    class Person(SPGTypeHelper):
        class fundTrans(RelationHelper):
            transDate = PropertyHelper("transDate")
            transAmt = PropertyHelper("transAmt")

        hasPhone = PropertyHelper("hasPhone")
        id = PropertyHelper("id")
        description = PropertyHelper("description")
        belongTo = PropertyHelper("belongTo")
        age = PropertyHelper("age")
        name = PropertyHelper("name")

        holdShare = RelationHelper("holdShare")
        developed = RelationHelper("developed")
        hasDevice = RelationHelper("hasDevice")
        hasCert = RelationHelper("hasCert")
        release = RelationHelper("release")

        fundTrans = fundTrans("fundTrans")

    class TaxOfRiskApp(SPGTypeHelper):

        id = PropertyHelper("id")
        alias = PropertyHelper("alias")
        description = PropertyHelper("description")
        stdId = PropertyHelper("stdId")
        name = PropertyHelper("name")

    class TaxOfRiskUser(SPGTypeHelper):

        id = PropertyHelper("id")
        alias = PropertyHelper("alias")
        description = PropertyHelper("description")
        stdId = PropertyHelper("stdId")
        name = PropertyHelper("name")

    App = App("RiskMining.App")
    Cert = Cert("RiskMining.Cert")
    Company = Company("RiskMining.Company")
    Device = Device("RiskMining.Device")
    Person = Person("RiskMining.Person")
    TaxOfRiskApp = TaxOfRiskApp("RiskMining.TaxOfRiskApp")
    TaxOfRiskUser = TaxOfRiskUser("RiskMining.TaxOfRiskUser")

    pass
